#ifndef KNOWLEDGEBASE_H
#define KNOWLEDGEBASE_H

#include "Deck.h"
#include "treeitem.h"

/*
 *  KnowledgeBase class is going to be container for all TreeItem's.
 *  TreeModel will be only a mediator between KnowledgeBase (BL) and TreeView (PL)
 */


class KnowledgeBase
{
	public:
		KnowledgeBase();
		~KnowledgeBase();

		Deck* deck() const;

		void clear();

		TreeItem* getTreeItem(QUuid id) const;
		void setTreeItem(QUuid id, TreeItem* item);

	private:

		Deck* m_Deck;
		QMap<QUuid, TreeItem*> parentPointerFinder;

};

#endif // KNOWLEDGEBASE_H
